package sk.xorty.adapters.jms;

import org.springframework.integration.Message;
import org.springframework.integration.MessagingException;
import org.springframework.integration.core.MessageHandler;

import static org.junit.Assert.assertEquals;

public class JmsHandler implements MessageHandler {
    @Override
    public void handleMessage(Message<?> message) throws MessagingException {
        assertEquals("Pub-Sub Message from JMS", message.getPayload());
    }
}
